package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalTimestampFieldMetadata;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;
import jmine.tec.datadigester.positional.writer.TimestampPositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos TimeStamp
 * 
 * @author israel.crisanto
 */
public class TimestampPositionalWriterFactory implements PositionalWriterFactory<PositionalTimestampFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalTimestampFieldMetadata meta) {
        return new TimestampPositionalFieldWriter(meta);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalTimestampFieldMetadata> getFieldMetadataType() {
        return PositionalTimestampFieldMetadata.class;
    }

}
